package com.fly.user.config;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by fly on 2019/9/26.
 */
@Configuration
public class OAuth2ResourceAutoConfig {
    public OAuth2ResourceAutoConfig() {
    }

    @Bean
    @ConditionalOnMissingBean
    public CustomJwtConverter customJwtConverter() {
        return new CustomJwtConverter();
    }
}
